package com.gsd.cloud.mapper;

import com.gsd.cloud.entities.Account;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;


/**
 * @ClassName AccountMapper
 * @Description TODO
 * @Author shoudu guo
 * @Date 2024/3/29 17:20
 * @Version 1.0
 */
public interface AccountMapper extends Mapper<Account>
{

    /**
     * @param userId
     * @param money 本次消费金额
     */
    void decrease(@Param("userId") Long userId, @Param("money") Long money);
}



